const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
    devServer: {
      proxy: {
        '/api': {
          target: 'http://localhost:8081', // 后端服务地址
          changeOrigin: true,
          pathRewrite: {
            '^/api': '' // 去掉 '/api' 前缀
          },
          logLevel: 'debug' // 添加这行以查看代理日志
        }
      },
    }
})
